<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
body {
	background-image: url('../images/backgrond.jpg');
}
 button {
	width: 120px;
	height: 30px;
	color: red;
	text-shadow: 5px 5px 5px #FF0000;
}

h2 {
	text-shadow: 5px 5px 5px #FF0000;
	color: #900000;
	font: italic bold 20px serif;
	text-align: center;
}

h3 {
	text-shadow: 5px 5px 5px #FF0000;
	color: #900000;
	font: italic bold 20px serif;
	text-align: left;
}

fieldset {
	text-shadow: 2px 2px 2px #99FF99;
	font: italic bold 12px/30px Georgia, serif;
}

p {
	text-shadow: 5px 5px 5px #FF0000;
	color: #900000;
	font: italic bold 20px serif;
	text-align: center;
}

h6 {
	text-align: center
}

table {
	table-layout: auto;
}
</style>

<script type="text/javascript">
function check(){
	var x = document.getElementById("myText").value;
		if(x ==""){
		alert("please enter the information you want to edit");
		return false;
	}
	else{
		return true;
	}
}	
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<jsp:useBean id="followPlan" type="model.FollowPlan" scope="session"></jsp:useBean>
 	<div>
		<table border="1" width="88%" id="P">
			<h3>Plan INFO</h3>
			<tr>
				<td width="100"><b>plan_ID</b></td>
				<td width="100"><b>plan_type</b></td>
				<td width="100"><b>plan_description</b></td>
			</tr>
			<tr>
				<td><jsp:getProperty name="followPlan" property="id" /></td>
 				<td><jsp:getProperty name="followPlan" property="type" /></td>
				<td><jsp:getProperty name="followPlan" property="des" /></td>
  			</tr>
		</table>
		<form action="/Spring_MVC/manager/editPlanTrue.do" method="get" onsubmit="return check()">
			<table border="1" width="88%">
				<h3>New Info</h3>
				<tr>
					<td width="150">ID</td>
					<td width="150">Which Attribute want to Update</td>
					<td width="150">Update Infomation</td>
				</tr>
				<tr>
					<td><input type="radio" name="id" value="<%=followPlan.getId() %>"
						checked /><%=followPlan.getId() %></td>
					<td><select name="type">
							<option value="plan_type">plan_type</option>
							<option value="plan_description">plan_description</option>
  					</select></td>
					<td>Enter the New Info you want to update<input id="myText"
						type="text" name="info">
					</td>
				</tr>
			</table>
			<input type="submit" value="Submit" />
		</form>
	</div>

</body>
</html>